import request from '@/utils/request';

export function needShareCode(data) {
  return request.get('/share/needShareCode/' + data, null);
}
export function getShare({ shareLink, shareCode }) {
  return request.get('/share/' + shareLink, { shareCode: shareCode });
}
export function confirmShareCode(data) {
  return request.post('/share/confirmShareCode', data);
}
export function shareFile(data) {
  console.log(data);
  return request.postJSON('/share/shareFile', data);
}
